package org.vshe.improve.spring.prospring3.ch5.exp;

import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;

public class ExpTest {
	public static void main(String args[]) {
		ExpressionParser parser = new SpelExpressionParser();
		Expression exp = parser.parseExpression("name=='some name'");
		
		
		BeanContext context = new BeanContext("some name", "some value");
		System.out.println(exp.getValue(context));
		
		
	}
}
